package com.baizhiedu.basic.aop_anno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @Author: robert.song
 * @Date: Created in 2021/11/13
 */
@Component("myAspect")
@Aspect
public class MyAspect {
    @Before("execution(* com.baizhiedu.basic.aop_anno.Target.*(..))")
    public void before() {
        System.out.println("---before enhance---");
    }

    @Before("execution(* com.baizhiedu.basic..*.*(..))")
    public void beforeFighterService() {
        System.out.println("---before enhance service---");
    }
}
